<?php
$dbHost = "localhost";        //Location Of Database usually its localhost 
$dbUser = "root";            //Database User Name 
$dbPass = "";                                       //Database Password 
$dbDatabase_cameraquansat = "sieuthin_cameraquansat";       //Database Name 
$dbDatabase_xshop = "nhadat_xshop";       //Database Name 


//connect to nhadat_phatdien
global $connect_cameraquansat, $connect_xshop;

$connect_cameraquansat = mysql_connect($dbHost, $dbUser, $dbPass) or die ("Error connecting to nhadat_phatdien database."); 
mysql_select_db($dbDatabase_cameraquansat, $connect_cameraquansat) or die ("Couldn't select the database.");
mysql_query ("SET NAMES 'utf8'", $connect_cameraquansat); 


//conect to nhadat_cameraquansatgiare.vn
$connect_xshop = mysql_connect($dbHost, $dbUser, $dbPass,true) or die ("Error connecting to nhadat_cameraquansatgiare.vn database."); 
mysql_select_db($dbDatabase_xshop, $connect_xshop) or die ("Couldn't select the database."); 
mysql_query ("SET NAMES 'utf8'", $connect_xshop);

